package com.itheima.store.service;

import java.sql.SQLException;
import java.util.List;

import com.itheima.store.domain.PageBean;
import com.itheima.store.domain.User;
import com.itheima.store.domain.Book;

/**
 * 商品Service的接口
 * @author admin
 *
 */
public interface BookService {

	List<Book> findByHot()throws SQLException ;

	List<Book> findByNew()throws SQLException ;

	PageBean<Book> findByPageBook_category_id(String book_category_id, Integer currPage)throws SQLException ;

	Book findByBook_id(String book_id)throws SQLException ;

	PageBean<Book> findByPage(Integer currPage)throws SQLException ;

	void save(Book book)throws SQLException ;

	void update(Book book)throws SQLException ;

	List<Book> findPushDown(Integer Isunder)throws SQLException ;
	
	void updateEdit(Book book)throws SQLException;
	
	PageBean<Book> findBookAllPageBean(int currPage, String search) throws SQLException;

	void delete(String book_id)throws SQLException;

	PageBean<Book> findByPageBookName(String book_name, Integer currPage) throws SQLException;



	

}
